.accordion-inner .nav-stacked {
    margin-bottom: 0;
}
.element-row {
    position: relative;
    margin-top: 10px;
}
#element-list {
    .remove,.style {
        display: none;
    }
    .preview {
        display: block;
        color: #666;
        font-size: 12px;
        line-height: 22px;
    }
    .view {
        display: none;
    }
    .ui-draggable-dragging{
    	.view{
    		display:block;
    	}
	}
}
.drag {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}
.input-group{
        label{
            float: left;
            display: inline-block;
            text-align: right;
            margin-right: 10px;
        }
    }
#demo {
	position: relative;
    min-height: 550px;
    border: 1px solid #DDD;
    border-width: 1px;
    padding: 30px 10px 10px 10px;
    margin-top: 0;
    &:after{
        background-color: #EBEBEB;
        -webkit-border-top-left-radius: 10px;
        -webkit-border-bottom-left-radius: 10px;
        -webkit-box-shadow: -1px 2px 4px #888;
		border: 1px solid #DDD;
		color: #9DA0A4;
		content: "Container";
		font-size: 12px;
		font-weight: bold;
		left: -71px;
		padding: 3px 7px;
		position: absolute;
		top: -1px;
        &:hover{
            padding: 7px 15px 7px 30px;
        }
    }
    .remove{
    	position: absolute;
		top: -13px;
		right: 5px;
		z-index: 10;
    }
    .style{
        position: absolute;
        top: -13px;
        right: 101px;
        z-index: 10;
        cursor: pointer;
    }
    .element-row {
    	.remove,.drag,.style{
	    	filter: alpha(opacity=20);
			opacity: 0.001;
			-webkit-transition: all 500ms ease;
			-moz-transition: all 500ms ease;
			-ms-transition: all 500ms ease;
			-o-transition: all 500ms ease;
			transition: all 500ms ease;
	    }
	    &:hover{
	    	.remove,.drag,.style{
	    		opacity: 1;
	    	}
	    }
	    .formWrap{
            table,td{
                border: 1px dotted #DDD;
            }
	    }
    }

    .element-row .drag{
    	top: -13px;
		right: 53px;
		z-index: 10;
    }
    .preview{
        display: none;
    }
    .input{
        margin-top: 0;
        .drag,.remove{
            top: 5px;
        }
        .input-block-level{
            margin-bottom:0;
        }
    }
}
.formWrap{
    min-height: 50px;
    padding: 10px;
    position: relative;
    border: 1px solid #DDD;
    &:after{
        background-color: #EBEBEB;
        -webkit-border-top-left-radius: 10px;
        -webkit-border-bottom-left-radius: 10px;
        -webkit-box-shadow: -1px 2px 4px #888;
        border: 1px solid #DDD;
        color: #9DA0A4;
        content: "Form";
        font-size: 12px;
        font-weight: bold;
        left: -45px;
        padding: 3px 7px;
        position: absolute;
        top: -1px;
    }
    table{
        width: 100%;
        .cell{
            padding: 10px;
        }
    }
}

.gridWrap{
    min-height: 50px;
    padding: 10px;
    position: relative;
    border: 1px solid #DDD;
    overflow: auto;
    &:after{
        background-color: #EBEBEB;
        -webkit-border-top-left-radius: 10px;
        -webkit-border-bottom-left-radius: 10px;
        -webkit-box-shadow: -1px 2px 4px #888;
        border: 1px solid #DDD;
        color: #9DA0A4;
        content: "Grid";
        font-size: 12px;
        font-weight: bold;
        left: -45px;
        padding: 3px 7px;
        position: absolute;
        top: -1px;
    }
    table{
        width: 100%;
        .cell{
            padding: 10px;
        }
    }
}


.divWrap{
    min-height: 100px;
    padding: 35px 10px 10px 10px;
    position: relative;
    border: 1px solid #DDD;
    &:after{
        background-color: #EBEBEB;
        -webkit-border-top-left-radius: 10px;
        -webkit-border-bottom-left-radius: 10px;
        -webkit-box-shadow: -1px 2px 4px #888;
        border: 1px solid #DDD;
        color: #9DA0A4;
        content: "Div";
        font-size: 12px;
        font-weight: bold;
        left: -33px;
        padding: 3px 7px;
        position: absolute;
        top: -1px;
    }
}
#layout{
    display: none;
}

#modalText{
    width: 100%;
    height: 280px;
    resize: none;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.afterClass:after{
    background-color: #EBEBEB;
    -webkit-border-top-left-radius: 10px;
    -webkit-border-bottom-left-radius: 10px;
    -webkit-box-shadow: -1px 2px 4px #888;
}

.modal{
    // width: auto;
    .form-horizontal {
        .control-group {
            margin-bottom: 10px;
        }
        .control-label{
            width: 30px;
        }
        .controls {
            margin-left: 40px;
            input{
                margin-right: 10px;
            }
        }
    }
}

.drop-over{
    border-color: rgba(82, 168, 236, 0.8);
    outline: 0;
    outline: thin dotted \9;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);
}

.panel{
    max-width: 800px;
    margin: 0 auto;
    // border: 1px dashed #ccc;
    position: relative;
    // -webkit-box-shadow: 2px 2px 15px #000;
    //        -moz-box-shadow: 2px 2px 15px #000;
    //         -ms-box-shadow: 2px 2px 15px #000;
    //             box-shadow: 2px 2px 15px #000;
    &:hover{
        // -webkit-box-shadow: 2px 2px 15px #3498DB;
        //    -moz-box-shadow: 2px 2px 15px #000;
        //     -ms-box-shadow: 2px 2px 15px #000;
        //         box-shadow: 2px 2px 15px #3498DB;
    }
    
    -webkit-border-radius: 10px;
       -moz-border-radius: 10px;
        -ms-border-radius: 10px;
            border-radius: 10px;
    .panel-header{
        margin: 0 10px;
        border-bottom: 1px solid #EEE;
        h3{
            margin-bottom: 5px;
        }
    }
    .panel-body{
        margin: 5px 10px;
        padding: 20px 10px 10px 10px;
        margin-bottom: 50px;
        overflow: auto;
        .row-fluid{
            margin-bottom:10px;
        }
        .two-col{
            width: 48%;
            display: inline-block;
            margin: 0 auto;
            float: left;
        }
        .list-wrap.two-col+.list-wrap{
            width: 48%;
            display: inline-block;
            margin: 0 auto;
            float: right;
        }
        .list-wrap+.list-wrap{
            display: none;
        }
        .list-header{
            margin-bottom: 5px;
            padding: 0 5px;
            font-weight: bold;
        }
        .list{
            max-height: 350px;
            overflow-y: scroll;
            border: 1px solid #EEE;
            padding: 5px 0;
            label{
                &:hover{
                    background-color: #BDC3C7;
                }
            }
            .radio, .checkbox {
                padding-left: 40px;
            }
        }
        .box {
            &:last-child{
                float: right;
            }
            &:active{
                padding-top: 2px;
                padding-bottom: 0px;
                box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),
                            0 1px 2px rgba(0, 0, 0, 0.05);
            }
            padding: 1px;
            width: 45%;
            height: 100px;
            background: #BDC3C7;
            border-radius: 10px;
            margin: 0 auto;
            display: inline-block;

            line-height: 100px;
            text-align: center;
            font-size: 28px;
            font-weight: bolder;
            text-decoration:none;
            cursor: pointer;
            color: #2C3E50;
        }
        .shadow {
            position: relative;
            max-width: 270px;
            // box-shadow: 0px 1px 4px rgba(0,0,0,0.3),
            //             0px 0px 20px rgba(0,0,0,0.1) inset;
        }
        .shadow::before,
        .shadow::after {
           content:"";
           position:absolute;
           z-index:-1;
        }
        .shadow::before,
        .shadow::after {
           content:"";
           position:absolute;
           z-index:-1;
           bottom:15px;
           left:10px;
           width:50%;
           height:20%;
        }
        .shadow::before,
        .shadow::after {
           content:"";
           position:absolute;
           z-index:-1;
           bottom:15px;
           left:10px;
           width:50%;
           height:20%;
           box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
           -webkit-transform:rotate(-3deg);
        }
        .shadow::after{
           right:10px;
           left:auto;
           -webkit-transform:rotate(3deg);
         }
    }
    .panel-footer{
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        padding: 10px;
        margin: 0 auto;
        .btn:last-child{
            float: right;
        }
    }
}

//载入动画效果
.spinner{
    margin: 100px auto;
    width: 20px;
    height: 20px;
    position: relative;
    .spinner-container {
        position: absolute;
        width: 100%;
        height: 100%;
    }
    .container1 > div, .container2 > div, .container3 > div {
        width: 6px;
        height: 6px;
        background-color: #333;

        border-radius: 100%;
        position: absolute;
        -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
        animation: bouncedelay 1.2s infinite ease-in-out;
        /* Prevent first frame from flickering when animation starts */
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
    }
    .circle1 { top: 0; left: 0; }
    .circle2 { top: 0; right: 0; }
    .circle3 { right: 0; bottom: 0; }
    .circle4 { left: 0; bottom: 0; }
    .container1{ 
        .circle3 {
            -webkit-animation-delay: -0.6s;
            animation-delay: -0.6s;
        }
        .circle4 {
            -webkit-animation-delay: -0.3s;
            animation-delay: -0.3s;
        }
    }
    .container2 {
        -webkit-transform: rotateZ(45deg);
        transform: rotateZ(45deg);
        .circle1 {
            -webkit-animation-delay: -1.1s;
            animation-delay: -1.1s;
        }
        .circle2 {
            -webkit-animation-delay: -0.8s;
            animation-delay: -0.8s;
        }
        .circle3 {
            -webkit-animation-delay: -0.5s;
            animation-delay: -0.5s;
        }
        .circle4 {
            -webkit-animation-delay: -0.2s;
            animation-delay: -0.2s;
        }
    }

    .container3 {
        -webkit-transform: rotateZ(90deg);
        transform: rotateZ(90deg);
        .circle1 {
            -webkit-animation-delay: -1.0s;
            animation-delay: -1.0s;
        }
        .circle2 {
            -webkit-animation-delay: -0.7s;
            animation-delay: -0.7s;
        }
        .circle3 {
            -webkit-animation-delay: -0.4s;
            animation-delay: -0.4s;
        }
        .circle4 {
            -webkit-animation-delay: -0.1s;
            animation-delay: -0.1s;
        }
    }
    
}
@-webkit-keyframes bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0.0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes bouncedelay {
    0%, 80%, 100% { 
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    } 40% { 
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}